/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: NoneRewardProcessor
 * Author:   zhouheng
 * Date:     2019/4/14 23:46
 * Description: 谢谢惠顾
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.activity.services.processor.reward;

import com.activity.services.processor.AbstractRewardProcessor;
import com.activity.services.processor.ActivityDrawContext;
import com.activity.services.processor.constants.DrawContants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 * 〈谢谢惠顾〉
 *
 * @author zhouheng
 * @create 2019/4/14
 * @since 1.0.0
 */

@Slf4j
@Service("noneRewardProcessor")
public class NoneRewardProcessor extends AbstractRewardProcessor {
    @Override
    public int getAwardType() {
        return DrawContants.AWARD_TYPE_ENUM.NONE.getValue();
    }

    @Override
    public void afterProcessor(ActivityDrawContext activityDrawContext) {

    }

    @Override
    public void processor(ActivityDrawContext activityDrawContext) {
        log.info("用户:{},获得奖项:{}",
                activityDrawContext.getActivityTurntableDrawReq().getUid(),
                activityDrawContext.getActDrawAwardItem().getItemName());

        saveAwardRecord(activityDrawContext); //保存记录
    }
}